﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Organization
{
    /// <summary>
    /// 内勤 上下班打卡
    /// </summary>
    public class InSideModel : CreatorBase<int>
    {
        /// <summary>
        /// 上班时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 上班打卡描述--外出，正常，请假
        /// </summary>
        [StringLength(50)]
        public string StartContent { get; set; }
        /// <summary>
        /// 上班考勤状态 1：正常 ，2：迟到
        /// </summary>
        public int StartLeaveType { get; set; }
        /// <summary>
        /// 上班打卡地址
        /// </summary>
        public string StartLocation { get; set; }
        /// <summary>
        /// 上班打卡图片
        /// </summary>
        public string StartImagePage { get; set; }

        /// <summary>
        /// 下班时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 下班打卡描述 --外出，正常，请假
        /// </summary>
        [StringLength(50)]
        public string EndContent { get; set; }
        /// <summary>
        /// 下班考勤状态 1：正常，3：早退
        /// </summary>
        public int EndLeaveType { get; set; }
        /// <summary>
        /// 下班打卡地址
        /// </summary>
        public string EndLocation { get; set; }
        /// <summary>
        /// 下班打卡图片
        /// </summary>
        public string EndImagePage { get; set; }

        /// <summary>
        /// 上班经度
        /// </summary>
        public long StartLongitude { set; get; }
        /// <summary>
        /// 上班纬度
        /// </summary>
        public long StartLatitude { get; set; }
        /// <summary>
        /// 下班经度
        /// </summary>
        public long EndLongitude { set; get; }
        /// <summary>
        /// 下班纬度
        /// </summary>
        public long EndLatitude { get; set; }

    }
    /// <summary>
    /// 打卡状态
    /// </summary>
    public enum InSideEnumType
    {
        未签 = 0,
        正常 = 1,
        迟到 = 2,
        早退 = 3,
        旷工 = 4,
        补签 = 5


    }

    public enum InSideLeaveEnumType
    {

        正常 = 0,
        外出 = 2,
        休息 = 1,

    }
}
